package model.ladron;

public abstract class Atributo implements Comparable<Atributo>{
	
	//Indices de los atributos en la lista que tiene ladron
	static final int sexo = 0;
	static final int hobby = 1;
	static final int cabello = 2;
	static final int senia = 3;
	static final int vehiculo = 4;
	
	protected Object valorDeAtributo;
	
	public  String toString(){
		return valorDeAtributo.toString();
	}
	
	public Object getValor(){
		return valorDeAtributo;
	}
	
	@Override
	public int compareTo(Atributo arg0) {
		Atributo atributoACompararse= (Atributo) arg0;
		
		if (atributoACompararse.getValor()==valorDeAtributo)	
			return 0;
		else
			return 1;
		
	}
}
